<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="./public/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./public/js/jquery-3.1.1.min.js"></script>
<title>标题描述</title>
<style>
.body {
	margin: 50px;
	padding-left: 200px;
	padding-right: 200px;
}
</style>
</head>
<body class="body">
	<div class="panel panel-default">
		<div class="panel-heading">
			<h3 class="panel-title">设置价格</h3>
		</div>
		<div class="panel-body">
			<p class="text-center">提交关键字流程→设置价格→确认和提交→成功</p>
			<p>每次最多提交20个关键字,若你希望继续添加请分次提交(您已经提交了一个关键字)</p>

		</div>
		<form action="updaX" method="post">
		<table class="table table-striped table-bordered table-hover">
			<tbody>

				<tr>
					<th colspan="4">关键字信息</th>
					<th colspan="2">关键字价格设置</th>
					<th colspan="2">关键字当前情况</th>

				</tr>
				<tr>
					<td><input type="checkbox"></td>
					<td>序号</td>
					<td>关键字</td>
					<td>起价</td>
					<td>竞价模式/竞价价格</td>
					<td>竞前三</td>
					<td>质量度</td>
					<td>当前前三名价格</td>
				</tr>
				<c:forEach items="${selectprice }" var="list" varStatus="li">
					<tr>
						<td><input type="checkbox"></td>
						<td>${li.index }</td>
						<td>${list.guan }</td>
						<td>1.2</td>
						<td><input type="text" name="lprice" id="pric${li.count}"
							value="${list.lprice }"></td>
						<td>竞 <input type="button" value="1" id="p1"
							onclick="ck1(pric${li.count})"><input type="button"
							value="2" id="p2" onclick="ck2(pric${li.count})"><input
							type="button" value="3" id="p3" onclick="ck3(pric${li.count})"></td>
						<td>1.0</td>
						<td>1.4 1.2</td>

					</tr>
				</c:forEach>
				<tr>
					<td align="center" colspan="8"><input type="button"
						value="删除所有所选关键字" onclick="javascrtpt:window.location.href='dele'">
					</td>
				</tr>
			</tbody>
			<tr>
					<td align="center" colspan="5"><input type="button"
						value="上一页" onclick="javascrtpt:window.location.href='biaoti'">
					</td>
					<td align="center" colspan="4"><input type="submit"
						value="下一页" >
					</td>
					
				</tr>
		</table>
		</form>
	</div>
	<script src="./public/js/jquery-3.1.1.min.js"></script>
	<script type="text/javascript">
	function ck1(a) {
		var a1 = $(a).val();
		var b1 = $(a).val() - 0.1;
		var c1 = $(a).val() - 0.2;
		$(a).val(a1);
		
	}
	function ck2(a) {
		var a1 = $(a).val();
		var b1 = $(a).val() - 0.1;
		var c1 = $(a).val() - 0.2;
		$(a).val(b1);
	}
	function ck3(a) {
		var a1 = $(a).val();
		var b1 = $(a).val() - 0.1;
		var c1 = $(a).val() - 0.2;
		$(a).val(c1);
	}

		
	</script>
</body>
</html>
